﻿@model RoadFlow.Model.Log
<style type="text/css">
    pre { word-break: break-all; font-family: 'Courier New'; word-wrap: break-word; white-space: pre-wrap; }
</style>
<style type="text/css" media="print">
    .Noprint { display: none; }
</style>
<style>
    table tr td pre { font-size:14px;}
</style>
<div class="toolbar Noprint" style="margin-top:0; border:none 0; position:fixed; top:0px; left:0; right:0; margin-left:auto; z-index:999; width:100%; margin-right:auto; height:30px;">
    <a href="javascript:void(0);" onclick="window.print();" title="">
        <i class='fa fa-print'></i><label>打印</label>
    </a>
    <span class="toolbarsplit">&nbsp;</span>
    <a href="javascript:void(0);" onclick="new RoadUI.Window().close();" title="">
        <i class='fa fa-remove'></i><label>关闭窗口</label>
    </a>
</div>
<table cellpadding="0" cellspacing="1" border="0" width="99%" class="formtable" style="margin-top:40px;">
    <tr>
        <th style="width:100px;">日志标题：</th>
        <td style="word-break:break-all;">@Model.Title</td>
    </tr>
    <tr>
        <th>日志类型：</th>
        <td>@Model.Type</td>
    </tr>
    <tr>
        <th>发生时间：</th>
        <td>@Model.WriteTime.ToString("yyyy-MM-dd HH:mm:ss.fff")</td>
    </tr>
    <tr>
        <th>操作人员：</th>
        <td>@Model.UserName @Html.Raw(Model.UserId.HasValue ? "<span>("+new RoadFlow.Business.User().GetOrganizeMainShowHtml(Model.UserId.Value)+")</span>":"")</td>
    </tr>
    <tr>
        <th>发生IP：</th>
        <td>@Model.IPAddress</td>
    </tr>
    <tr>
        <th>来源地址：</th>
        <td style="word-break:break-all;">@Model.Referer</td>
    </tr>
    <tr>
        <th>操作地址：</th>
        <td style="word-break:break-all;">@Model.URL</td>
    </tr>
    <tr>
        <th>客户端信息：</th>
        <td>@Model.BrowseAgent</td>
    </tr>
    @if (!string.IsNullOrWhiteSpace(Model.Contents))
    {
        <tr>
            <th>日志内容：</th>
            <td><pre>@Model.Contents</pre></td>
        </tr>
    }
    @if (!string.IsNullOrWhiteSpace(Model.OldContents))
    {
        <tr>
            <th>修改前：</th>
            <td><pre>@Model.OldContents</pre></td>
        </tr>
    }
    @if (!string.IsNullOrWhiteSpace(Model.NewContents))
    {
        <tr>
            <th>修改后：</th>
            <td><pre>@Model.NewContents</pre></td>
        </tr>
    }
    @if (!string.IsNullOrWhiteSpace(Model.Others))
    {
        <tr>
            <th>其它内容：</th>
            <td><pre>@Model.Others</pre></td>
        </tr>
    }
</table>